#ifndef __BOMB_H__
#define __BOMB_H__
#include "../include/map.h"
#include "../include/player.h"
#include "../include/monster_list.h"

typedef struct s_bomb * t_bomb;

//Initialization of bomb
extern t_bomb bomb_new(int x, int y, int power);

//Get,Increase, Decrease the power of the bomb
extern int bomb_get_power(t_bomb bomb);
extern void bomb_inc_range(t_bomb bomb);
extern void bomb_dec_range(t_bomb bomb);

//For image of bomb
enum e_time_bomb {
	TIMEBOMB_1 = 0 , TIMEBOMB_2, TIMEBOMB_3, TIMEBOMB_4
};
enum e_explode_bomb {
	EXPLODEBOMB_0 = 4 , EXPLODEBOMB_1, EXPLODEBOMB_2
};

extern void bomb_set_current_timebomb(t_bomb bomb, enum e_time_bomb timebomb);

//display the bomb
extern int bomb_display(t_bomb bomb, SDL_Surface *screen, t_map map, t_player player,t_list monster_list,t_monster monster);

//get the time of a bomb
extern Uint32 bomb_get_time(t_bomb bomb);

//Set the time of the bomb
extern void bomb_set_time(t_bomb bomb, Uint32 time);

#endif /* __BOMB_H__ */
